ScanDeviceManager LoadConfiguration
Loads the configuration and device gateways.
Overloads
| public void LoadConfiguration() |
| public void LoadConfiguration(string configurationFileName) |
| public void LoadConfiguration(TextReader configurationXmlStream) |
Return value
| void |
Parameters
| string | configurationFileName | Name of the configuration file. |
| TextReader | configurationXmlStream | An XML stream containing configuration data |
Exceptions
| ConfigurationLoadingException | Throws if the stream is not properly formatted. |
| ScanDeviceGatewayLoadingException | Throws if the type could not be loaded |
Example
Copy
scanDeviceManager = new ScanDeviceManager();
try
{
scanDeviceManager.LoadConfiguration();
}
catch (ConfigurationLoadingException ex1)
{
MessageBox.Show(ex1.Message, "VectorImageSample");
}